<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <script type="text/javascript">
    for(var i = 1;i <= 6;i++)
    {
        document.write("<h"+i+">"+"标题"+i+"</h"+i+">");
    }
    </script>
</head>
<body>
    
</body>
</html>